@extends('host.custom.common.common')

@section('c-head')
    <script>

        var PAGE_DATA = {
            buyerId : "{{ $authorization->purchaser->id }}", //采购商ID
            buyerName : "{{ $authorization->company_name }}", //采购商名称
            goodId : "{{ $licensed->goods_id }}", // 授权商品id
            goodName : "{{ $licensed->goods->name }}", //授权商品名称
            priceid : "{{ $licensed->strategy_id }}", //价格策略id
            provinceid : "{{ $licensed->province_id }}", //省市id
            cityid : "{{ $licensed->city_id }}", //区id
            countryid : "{{ $licensed->county_id }}", //县id
            pricePolicy : $.parseJSON('{!! json_encode($strategies) !!}'),
            backHref: "{{ route('account.my-purchaser.licensed', [$authorization->id]) }}",
            backBuyerListHref: "{{ route('account.my-purchaser.index') }}"
        };

    </script>
@stop

@section('body')
        <!-- top_test -->
<div id="top_test"> </div>

<!-- web_logo_search -->
<div id="web_logo_search"> </div>

<!-- comm_nav -->
<div id="comm_nav"> </div>


<div class="com-w mt20">
    <div class="wrapper clearfix">
        <div  class="w220 mr20 comm-left-menu">
            <div class="menu-top-title">供应商中心</div>
            <div id="leftmenuitems">
            </div>
        </div>

        <div class="w960 comm-main">
            <div class="main-release clearfix">
                <div class="main-release-nav">
                    您当前的位置：首页 > 供应商中心
                </div>
                <div class="main-release-title">
                        <span class="icons">

                        </span>
                        <span class="release-title-h3 f16">
                            我的采购商
                        </span>
                </div>
                <div class="main-release-from">
                    <div id="commTabs_1" class="comm-tabs">
                        <div class="comm-tabs-head">
                            <div class="head-item current">编辑授权信息</div>
                            <a id="back-buyer-list" class="head-item-right" href="" style="color:#ff500b;">返回采购商列表</a>
                        </div>
                        <div class="comm-tabs-body">
                            <form id="page-main-form" method="POST" action="{{ route('account.my-purchaser.licensed.update', [$authorization->id, $licensed->id]) }}" >
                                {{ csrf_field() }}
                                <input name="_method" value="PUT" hidden="hidden">
                                <div class="body-item current clearfix">
                                    <ul class="clearfix">
                                        <li class="current-left ">采购商名称：<input type="hidden" id="buyerId" name="buyerId" /> </li>
                                        <li class="current-right name" id="buyerName"></li>
                                        <li class="current-left">选择授权商品：<input type="hidden" id="goodId" name="goodId" /></li>
                                        <li class="current-right goods-name" id="goodName"></li>
                                        <li class="current-left">选择授权价格：</li>
                                        <li class="current-right" >
                                            <select id="price" name="price">
                                                <option value="">请选择</option>
                                            </select>
                                        </li>
                                        <li class="current-left">选择授权范围：</li>
                                        <li class="current-right">
                                            <select id="province" name="province" style="width:150px">
                                                <option value="">请选择</option>
                                            </select>
                                            <select id="city" name="city" style="width:150px">
                                                <option value="">请选择</option>
                                            </select>
                                            <select id="country" name="country" style="width:150px">
                                                <option value="">请选择</option>
                                            </select>
                                        </li>
                                        <li></li>
                                    </ul>
                                    <div class="bottom-btn clearfix">
                                        <!-- onclick="subGrant()" -->
                                        <input id="submit-btn" type="button" class="confirm mb20" value="确认"> </input>
                                        <a id="back-btn" class="btn btn-default btn-150x50 mb20 ml10"> 返回 </a>
                                    </div>
                                </div>



                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<!-- foot_nav -->
<div id="foot_nav"> </div>

<div id="bottom_main"></div>
<!-- 价格策略下拉框 -->
<script type="text/template" id="price-templ">
    <option value="">请选择</option>
    <% _.each(obj, function(item){%>
    <option value="<%=item.code %>"><%=item.text %></option>
    <% }); %>
</script>
<!-- 省市区 -->
<script type="text/template" id="area-option-templ">
    <option value="">请选择</option>
    <% _.each(obj, function(item){%>
    <option value="<%=item.code %>"><%=item.text %></option>
    <% }); %>
</script>
<script type="text/javascript" src="/assets/b2b/js/libs/dialog-min.js"></script>
<script src="/assets/b2b/js/pageModules/supplyer/S8.js"></script>
<!-- -->
@stop